package abg.core.domain.db;

import abg.core.domain.sys.FileBType;
import abg.core.common.mybatis.config.FieldInsert;
import abg.core.common.mybatis.config.FieldSet;
import abg.core.common.mybatis.config.FieldUpdate;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * 文件资源
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table(value = "sys_file", onUpdate = FieldUpdate.class, onInsert = FieldInsert.class, onSet = FieldSet.class)
public class SysFile extends ZBEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    //备注
    private String remark;

    //文件名
    private String name;

    //原始名称
    private String originName;

    //文件上传人
    private String uploadUserId;

    //访问URI路径
    private String uri;

    //文件大小
    private Long size;

    //文件类型
    private String fileType;

    //业务类型
    private FileBType bType;

    //文件MD5
    private String md5;

}
